import request from "@/utils/request";
export const nodePosition = (params) => {
  return request.get("/system-topology/getNodePositions", { params });
};

export const topoGraph = (params) => {
  return request.get("/system-topology/getTopologyGraph", { params });
};
export const systemInfoData = (id) => {
  return request.get(`/system/info/${id}`)
}

export const traceBackGraph = (params) => {
  return request.get('/system-topology/topoBackTrack', {params})
}


export const singleNodeTopology = (data, params) => {
  return request.post('/system-topology/getSingleNodeTopology',data, {params})
}


export const modifyTopology = (params) => {
  return request.post('/system/upsert', params)
}

export const modifyEntrance = (data, params) => {
  return request.post('/system/systemEntrance/setup', data, { params })
}
